package chapter2.No2_2_synchronized同步语句块.l多线程的死锁.demo1;

/**
 * !
 *
 * @author liujian
 * @version 2016/11/14 0014
 */
public class MyThread implements Runnable {
    Bandit bandit = new Bandit();
    Father father = new Father();

    public MyThread() {
        new Thread(this).start();
        father.say(bandit);
    }

    public static void main(String[] args) {
        new MyThread();
    }

    public void run() {
        bandit.say(father);
    }
}
